<template>
  <div>
    <BasicTable @register="registerTable" />
  </div>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';

  import { BasicTable, useTable } from '/@/components/Table';
  import { getSecurityLogs } from '/@/api/sys/system';
  import { columns, searchFormSchema } from './login.data';

  export default defineComponent({
    name: 'LoginLogsManagement',
    components: { BasicTable },
    setup() {
      const [registerTable] = useTable({
        title: '登录日志列表',
        api: getSecurityLogs,
        columns,
        formConfig: {
          labelWidth: 120,
          schemas: searchFormSchema,
        },
        useSearchForm: true,
        showTableSetting: true,
        bordered: true,
        showIndexColumn: false,
      });
      return {
        registerTable,
      };
    },
  });
</script>
